/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.com.neolokura.travian.helper.log4j;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

/**
 *
 * @author gustavo
 */
public class Log4JBasicTest {

    private static Logger logger = Logger.getLogger(Log4JBasicTest.class);

    public static void main(String args[]) {
        logger.info("Info Log");
        myMethod();
        logger.debug("Debug Log");
    }
    
    private static void myMethod() {
        try {
            throw new Exception();
        } catch (Exception e) {
            logger.error("Error Log");
        }
    }
}
